<script type="text/javascript">
var showCL = true;
function setShowCL(){
	showCL = true;
}
function offShowCL(){
	showCL = false;
}
function toggleCateDrop()
{
	if(!showCL)
		$('catalogListBox').style.display='none';
}
function cate_drop_show()
{
　	if($('catalogListBox').style.display=='block'){
		Event.stopObserving($('searchTypeBox'), "mouseover",setShowCL, false);
		Event.stopObserving($('searchTypeBox'), "mouseout",offShowCL, false);
		$('catalogListBox').style.display='none';
		Event.stopObserving(document, "click", toggleCateDrop, false);		
	}else{
		Event.observe($('searchTypeBox'), "mouseover",setShowCL, false);
		Event.observe($('searchTypeBox'), "mouseout",offShowCL, false); 
		Event.observe(document, "click", toggleCateDrop, false);
		$('catalogListBox').style.display='block';
	}
}
function showAllCat() {
	try{
		var dles = document.getElementById("all_cate_list").getElementsByTagName("li");
		for (var i=0; i< dles.length; i++) {
			var p_box = dles[i].getElementsByTagName("p");
			if(p_box.length>0){
				dles[i].index = i;
				dles[i].box = p_box;
				dles[i].onmouseover= function() {
					this.className="lion";
					if(this.index>0){
						var box = document.getElementById("all_cate_list").getElementsByTagName("li")[this.index].getElementsByTagName("p");
						var len = box[0].getElementsByTagName("a").length;
						if(1>box[0].style.top&&this.index>0)
							if(this.index+1==dles.length){
								box[0].style.top = (1-len)*22+'px';
							}else{
								box[0].style.top = this.index<parseInt(dles.length/2)?(this.index>len?(-parseInt(len/2))*22+'px':-(this.index-1)*22+'px'):( parseInt(len/2)>dles.length-this.index?((dles.length-this.index)-len)*22+'px':(-parseInt(len/2))*22+'px' );
							}
					}
				}
				dles[i].onmouseout= function() {
					this.className="";
				}
			}
		}
	}catch(e){}
}

showAllCat();
	
function catOptionsInit() {
	try{
		var lies = document.getElementById("catalogListBox").getElementsByTagName("li");
		for (var i=0; i< lies.length; i++) {
			if(lies[i].className!='sub-line'){
				lies[i].onmouseover= function() {
					this.className="hover";
				}
				lies[i].onmouseout= function() {
					this.className="";
				}
				lies[i].onclick= function(){
					cate_drop_show();
					$('search_catid').value=navigator.userAgent.indexOf("MSIE")>0?this.catid:this.getAttribute('catid');
					$('search_type_in').value =this.innerHTML;
				}
			}
		}
	}catch(e){}
}
catOptionsInit();
<{if $smarty.get.s}>
try{
	$('all_cat').onmouseover= function() {
		$('all_cate_list').style.display='block';
	}
	$('all_cat').onmouseout= function() {
		$('all_cate_list').style.display='none';
	}
}catch(e){}
<{/if}>
</script>
<div class="clear"></div>
<div id="footer" class="topm">
   		<{$web_con}><br />
        <{$bt}>
	</div>
</div>
	<P class="grayy">
		<script src="<{$config.weburl}>/script/jf_change.js" type=text/javascript></script>
        <script type="text/javascript">
        var defaultEncoding = 2;
        var translateDelay = 0;
        var cookieDomain = ""; 
        var msgToTraditionalChinese = "繁體中文";
        var msgToSimplifiedChinese = "简体中文";
        var translateButtonId = "涂料学会";
        translateInitilization();
        </Script>
    </P>
    </div>
</body>
</html>